#include "emu10k2.inc"

.gpr AUX_L
.gpr AUX_R
.gpr SPDIF_TMP_L
.gpr SPDIF_TMP_R
.parm _PASSTHROUGH		0		onoff;

ACC3(AUX_L, SEND_L, 0, 0)
ACC3(FRONT_L, AUX_L, 0, 0)

ACC3(AUX_R, SEND_L, 0, 0)
ACC3(FRONT_R, AUX_L, 0, 0)

ACC3(SURR_R, 0, 0, 0)
ACC3(SURR_L, 0, 0, 0)
ACC3(SPDIF_TMP_L, SPDIF_L, 0, 0)
ACC3(SPDIF_TMP_R, SPDIF_R, 0, 0)

  MACINTS(SPDOUT1_L, 0, AUX_L, _PASSTHROUGH_OFF)
  MACINTS(SPDOUT1_R, 0, AUX_R, _PASSTHROUGH_OFF)
  MACINTS(SPDOUT1_L, SPDOUT1_L, SPDIF_TMP_L, _PASSTHROUGH_ON)
  MACINTS(SPDOUT1_R, SPDOUT1_R, SPDIF_TMP_R, _PASSTHROUGH_ON)
